<template>
    <div class="goodsdesc-container">
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.zhaiyao"></div>
    </div>
</template>

<script>
export default {

    data(){
        return{
            info:{}
        };
    },

    created(){
        this.getGoodsDesc();
    },

    methods:{
      getGoodsDesc(){
          this.$http.get("goods/"+this.$route.params.id).then(result => {
              this.info=result.body.data;
          });
      }  
    }
}
</script>

<style lang="scss">
.goodsdesc-container{
    h3{
        font-size: 16px;
        color:#226aff;
        text-align: center;
        margin: 15px 0;
    }

    .content{

            padding: 0 15px;
            img{
                width: 100%;
            }

            p{
                padding:0 15px;
            }
        }
}
</style>


